package messageAPI.DistributedCommunication;

import messageAPI.Core.IDistributedCommunicationHandler;
import messageAPI.Core.IDistributedCommunicationHandlerFactory;
import messageAPI.RabbitMQIntegration.RabbitMQHandler;

/**
 * A factory for creating DistributedCommunicationHandler objects.
 */
public class CommunicationHandlerFactory implements IDistributedCommunicationHandlerFactory {

	/**
	 * Gets the distributed communication handler.
	 *
	 * @return the i distributed communication handler
	 * @throws Throwable the throwable
	 */
    public static IDistributedCommunicationHandler getDistributedCommunicationHandler() throws Throwable
	{
		return RabbitMQHandler.getInstance();
	}
	
}
